﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace DAL
{
    public class BuyerPriceHistory
    {
        
        public static void insertByUpdateProduct(int productId)
        {
            DbHelper.ExecuteNonQuery("p_BuyerPriceHistory_insertByUpdateProduct",
                productId);
        }

        public static void insertByUpdateBuyerPriceStuctrue(int productId, int buyerId)
        {
            DbHelper.ExecuteNonQuery("p_BuyerPriceHistory_insertByUpdateBuyerPriceStuctrue",
                productId,buyerId);
        }


        public static DataRow getCollect(int productId, int buyerId)
        {
           return  DbHelper.ExecuteDataRow("p_BuyerPriceHistory_getCollect",
                buyerId,productId);
        }

        public static DataSet sublist(int productId,int buyerId)
        {
            return DbHelper.ExecuteReDataSet("p_BuyerPriceHistory_sublist", productId, buyerId);
        }
    }
}
